﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Three_Week.BLL;
using Three_Week.DAL;
using Three_Week.Model;

namespace Three_Week.Api.Controllers
{
    [Route("api/[controller]/[action]")]
    [ApiController]
    public class HouseController : ControllerBase
    {
        private readonly HouseBll houseBll;

        public HouseController(HouseBll _houseBll)
        {
            houseBll = _houseBll;
        }
        /// <summary>
        /// 房型添加
        /// </summary>
        /// <param name="V"></param>
        /// <returns></returns>
        [HttpPost]
        public int HouseAdd(HouseType V)
        {
            try
            {
                return houseBll.HouseAdd(V);
            }
            catch (Exception)
            {

                throw;
            }
        }
    }
}
